package com.spring.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

@Data
public class RegisterUser implements Serializable {
    private String password ;
    private String phone ;
    private String email ;
    private String stdId ;

    Map getMap(){
        HashMap<String,String> map = new HashMap<>() ;
        map.put("password",password) ;
        map.put("phone",phone) ;
        map.put("email",email) ;
        map.put("stdId",stdId) ;
        return map ;
    }

    RegisterUser(Map map){
        password = (String) map.get("password") ;
        email = (String) map.get("email") ;
        stdId = (String) map.get("stdId") ;
        phone = (String) map.get("phone") ;
    }
}


